package com.hyd.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.base.mybatis.plus.EntityWrapper;

import com.hyd.dao.ChemicalTypeMapper;
import com.hyd.dao.model.ChemicalType;
import com.hyd.dao.model.ChemicalTypeExample;

@Service
public class ChemicalTypeService {
	@Autowired
	private ChemicalTypeMapper chemicalTypeMapper;

	public int countByExample(ChemicalTypeExample example) {
		return this.chemicalTypeMapper.countByExample(example);
	}

	public ChemicalType selectByPrimaryKey(Integer id) {
		return this.chemicalTypeMapper.selectByPrimaryKey(id);
	}

	public List<ChemicalType> selectByExample(ChemicalTypeExample example) {
		return this.chemicalTypeMapper.selectByExample(example);
	}

	public List<ChemicalType> selectByExampleWithBLOBs(ChemicalTypeExample example) {
		return this.chemicalTypeMapper.selectByExampleWithBLOBs(example);
	}

	public int deleteByPrimaryKey(Integer id) {
		return this.chemicalTypeMapper.deleteByPrimaryKey(id);
	}

	public int updateByPrimaryKeySelective(ChemicalType record) {
		return this.chemicalTypeMapper.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKeyWithBLOBs(ChemicalType record) {
		return this.chemicalTypeMapper.updateByPrimaryKeyWithBLOBs(record);
	}

	public int updateByPrimaryKey(ChemicalType record) {
		return this.chemicalTypeMapper.updateByPrimaryKey(record);
	}

	public int deleteByExample(ChemicalTypeExample example) {
		return this.chemicalTypeMapper.deleteByExample(example);
	}

	public int updateByExampleSelective(ChemicalType record, ChemicalTypeExample example) {
		return this.chemicalTypeMapper.updateByExampleSelective(record, example);
	}

	public int updateByExampleWithBLOBs(ChemicalType record, ChemicalTypeExample example) {
		return this.chemicalTypeMapper.updateByExampleWithBLOBs(record, example);
	}

	public int updateByExample(ChemicalType record, ChemicalTypeExample example) {
		return this.chemicalTypeMapper.updateByExample(record, example);
	}

	public int insert(ChemicalType record) {
		return this.chemicalTypeMapper.insert(record);
	}

	public int insertSelective(ChemicalType record) {
		return this.chemicalTypeMapper.insertSelective(record);
	}

	public List<ChemicalType> selectByWrapper(EntityWrapper<ChemicalType> wrapper) {
		return this.chemicalTypeMapper.selectByWrapper(wrapper);
	}

	public List<ChemicalType> selectByWrapperWithBLOBs(EntityWrapper<ChemicalType> wrapper) {
		return this.chemicalTypeMapper.selectByWrapperWithBLOBs(wrapper);
	}

}
